package com.erp.order.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单日志业务对象 erp_seller_order_log
 *
 * @author erp
 * @date 2023-04-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerOrderLogBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺名
     */
    @NotBlank(message = "店铺名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeName;

    /**
     * ERP注册账号
     */
    @NotNull(message = "ERP注册账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String erpAccount;

    /**
     * 订单号
     */
    @NotNull(message = "订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 子订单号
     */
    @NotBlank(message = "子订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String childOrderId;

    /**
     * 操作说明
     */
    @NotBlank(message = "操作说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String statusIntro;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;

    /**
     * 备注
     */
    private String remark;

    private Integer type;
    /**
     * 上一个状态
     */
    private String previousStatus;
    /**
     * 当前状态
     */
    private String currentStatus;

    /**
     * 上一个状态
     */
    private String previousProcessFlag;
    /**
     * 当前状态
     */
    private String currentProcessFlag;
    /**
     * 流程代码
     */
    private String orderProcessFlag;
}
